package com.pojo;

import lombok.Builder;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty;

public class Room {
    private Integer id;

    @NotEmpty(message = "会议室名称不能为空")
    private String name;

    @NotEmpty(message = "会议室位置不能为空")
    private String location;

    @Length(max = 200,message = "会议室描述不能超过200字符")
    private String description;

    @Max(value = 999,message = "会议室容纳人数不能成功999")
    private Short number;

    private Boolean status;
    
    

    public Room(Integer id, String name, String location, String description, Short number, Boolean status) {
		super();
		this.id = id;
		this.name = name;
		this.location = location;
		this.description = description;
		this.number = number;
		this.status = status;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Short getNumber() {
        return number;
    }

    public void setNumber(Short number) {
        this.number = number;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }
}